﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Windows.Media;

namespace CrossRoadNS.Services.Converters
{
    class CellOccupiedColorConv:IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            //bool bValue = (bool)value;

            //SolidColorBrush brush = new SolidColorBrush();

            //if (bValue)
            //{
            //    brush.Color = Colors.Orange;
            //}
            //else
            //{
            //    brush.Color = Colors.Transparent;
            //}

            //return brush;

            return new SolidColorBrush(((bool)value) ? Colors.Orange : Colors.Transparent);
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
